package com.example.hxds.bff.driver.service.impl;

import com.example.hxds.bff.driver.controller.form.RemoveLocationCacheForm;
import com.example.hxds.bff.driver.controller.form.UpdateLocationCacheForm;
import com.example.hxds.bff.driver.feign.MapServiceApi;
import com.example.hxds.bff.driver.service.DriverLocationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DriverLocationServiceImpl implements DriverLocationService {

    @Autowired
    private MapServiceApi mapServiceApi;
    @Override
    public void updateLocationCache(UpdateLocationCacheForm form) {
        mapServiceApi.updateLocationCache(form);
    }

    @Override
    public void removeLocationCache(RemoveLocationCacheForm form) {
        mapServiceApi.removeLocationCache(form);
    }
}
